home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / Harvest C / MPW Int & Lib / Interfaces / Desk.h < prev    next >
Text File  |  1991-04-17  |  1KB  |  67 lines

  1. /************************************************************
  2.  
  3. Created: Sunday, January 6, 1991 at 9:05 PM
  4.     Desk.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.         Copyright Apple Computer, Inc.    1985-1989
  9.         All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __DESK__
  15. #define __DESK__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. #ifndef __QUICKDRAW__
  22. #include <Quickdraw.h>
  23. #endif
  24.  
  25. #ifndef __EVENTS__
  26. #include <Events.h>
  27. #endif
  28.  
  29.  
  30. enum {
  31.  
  32.     accEvent = 64,
  33.     accRun = 65,
  34.     accCursor = 66,
  35.     accMenu = 67,
  36.     accUndo = 68,
  37.     accCut = 70,
  38.     accCopy = 71,
  39.     accPaste = 72,
  40.     accClear = 73,
  41.     goodbye = -1    /*goodbye message*/
  42. };
  43.  
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47. pascal short OpenDeskAcc(ConstStr255Param deskAccName)
  48.     = 0xA9B6; 
  49. pascal void CloseDeskAcc(short refNum)
  50.     = 0xA9B7; 
  51. pascal void SystemClick(const EventRecord *theEvent,WindowPtr theWindow)
  52.     = 0xA9B3; 
  53. pascal Boolean SystemEdit(short editCmd)
  54.     = 0xA9C2; 
  55. pascal void SystemTask(void)
  56.     = 0xA9B4; 
  57. pascal Boolean SystemEvent(const EventRecord *theEvent)
  58.     = 0xA9B2; 
  59. pascal void SystemMenu(long menuResult)
  60.     = 0xA9B5; 
  61. short opendeskacc(char *deskAccName); 
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65.  
  66. #endif
  67.